package org.boyan.modules.mapper;

import org.apache.ibatis.annotations.Param;
import org.boyan.entity.cases.Case;
import org.boyan.modules.vo.CaseVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CaseMapper {

    int addCase(Case caseEntity);

    List<CaseVo> getCaseVoList(@Param("current") int currentPage, @Param("size") int size, @Param("criteria") Case caseCriteria);

    int getTotalByCriteria(@Param("criteria") Case caseCriteria);

    Case getCaseInfoById(String id);

    int editCase(Case caseInfo);

    int deleteCase(String id);

    int changeCaseStatus(int caseStatus, String id);

    int allocateCaseByCaseId(String developPrincipal, String caseId);
}
